﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Rarous.NForms.Helpers {
  public static class IEnumerableHelper {

    public static IEnumerable<T> Each<T>(this IEnumerable<T> collection, Action<T> action) {
      new List<T>(collection).ForEach(action);
      return collection;
    }

  }
}
